Make symbolic icons work again
authorMatthias Clasen <mclasen@redhat.com>
Mon, 17 Jan 2011 14:57:35 +0000 (09:57 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 17 Jan 2011 14:57:35 +0000 (09:57 -0500)
Work around https://bugzilla.gnome.org/show_bug.cgi?id=639750

gtk/gtkicontheme.c

index 7a32269f2ec13b65d84ef644da3555865407d467..cfce79f7431c4537a16557a78801a0fc541e9415 100644 (file)
@@ -3071,11 +3071,11 @@ gdk_color_to_css (GdkColor *color)
 static gchar *
 gdk_rgba_to_css (GdkRGBA *color)
 {
-  return g_strdup_printf ("rgba(%d,%d,%d,%f)",
+  /* drop a for now, since librsvg does not understand rgba() */
+  return g_strdup_printf ("rgb(%d,%d,%d)",
                           (gint)(color->red * 255),
                           (gint)(color->green * 255),
-                          (gint)(color->blue * 255),
-                          color->alpha);
+                          (gint)(color->blue * 255));
 }
 
 static GdkPixbuf *